package com.hmall.order.utils;
@SuppressWarnings("all")
public class ThreadUserId {


 private static  ThreadLocal<Long> threadLocal=new ThreadLocal<>();
        public static  void serUserId(Long userId){
            threadLocal.set(userId);
        }
        public  static  Long getUserId(){
            return threadLocal.get();
        }
        public  static  void removeUser(){
            threadLocal.remove();
        }
}
